<?php echo $this->Html->script('cart'); ?>
<?php echo $this->Html->script('deal'); ?>
<?php echo $this->Html->css('category'); ?>
<?php echo $this->Html->css('search'); ?>

<div class="catmain">
	<div class="grayBox">
		<div class="first-row dlist">
			<span class="title" style="float:left;margin-top:-5px">Sort by</span>
			<span class="search-filter" style="float:left;margin-left:15px">
				<a href="javascript:void(0)" id="price" class="sort_option">Price</a>
				<a href="javascript:void(0)" id="created" class="sort_option">Date</a>
			</span>
			<span class="clear:both"></span>
			<div class="search-filter pagin">
				<?php echo $this->Paginator->numbers(array('first'=>1,'modulus'=>4, 'last'=>1, 'separator' => ' '));?>
			</div>
		</div>

		<?foreach($deals as $deal):
			echo $this->element('deal',array('deal' => $deal, 'page' => 'index'));
		endforeach;?>
		
		<div class="pagination">
		</div>
	</div>
</div>

<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
